package com.sjsayers.jtbae.core;

/** The movement class is for doing all movement related tasks.*/
public class Movement {
	private int cordX;
	private int cordY;
	
	/**
	 * For setting the X cord.
	 * @param x This will be the new X cord.
	 */
	public void setCordX(int x){
		cordX = x;
	}
	/**
	 * For setting the Y cord.
	 * @param y This will be the new Y cord.
	 */
	public void setCordY(int y){
		cordY = y;
	}
	/**
	 * This moves the player one tile to the left, or west.
	 */
	public void moveWest(){
		cordX =- 1;
	}
	/**
	 * This moves the player one tile to the right, or east.
	 */
	public void moveEast(){
		cordX =+ 1;
	}
	/**
	 * This moves the player one tile up, or north.
	 */
	public void moveNorth(){
		cordY =+ 1;
	}
	/**
	 * This moves the player one tile down, or south.
	 */
	public void moveSouth(){
		cordY =- 1;
	}
	/**
	 * This method returns the X cord
	 * @return : x location
	 */
	public int getCordX(){
		return cordX;
	}
	/**
	 * This method returns the Y cord
	 * @return : y location
	 */
	public int getCordY(){
		return cordY;
	}
}